<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html"/>
  
  <xsl:template match="/search">
    <table width="100%" cellpadding="0" cellspacing="0">
      <xsl:apply-templates select="item"></xsl:apply-templates>
    </table>
  </xsl:template>

  <xsl:template match="item">
    <tr>
      <td>
        <table width="100%" style="border:1px solid #cccccc;border-collapse:collapse;" border="1" cellpadding="6" cellspacing="0">
          <tr>
            <td style="color:#ffffff;" background="/desktops/forum/template/ddth/category.gif">
              [<xsl:value-of select="TopicDate"/>] - <b><xsl:value-of select="TopicName"/></b>  bởi <b><xsl:value-of select="UserName"/></b> - (<xsl:value-of select="PostedDate"/>)
            </td>
          </tr>
          <tr>
            <td>
              <a style="color:#276B84;">
                <xsl:attribute name="href">
                  <xsl:value-of select="link"></xsl:value-of>
                </xsl:attribute>
                <b>Xem chủ đề này ...</b>
              </a>
            </td>
          </tr>
          <tr>
            <td>
              <xsl:value-of select="Content" disable-output-escaping="yes"/>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td style="height:10px;">
        
      </td>
    </tr>
  </xsl:template>
</xsl:stylesheet>

